#include<iostream>
#include<algorithm>
using namespace std;
int main(){
    int a,b;
    cin>>a>>b;
    string s=to_string(a*b);
    reverse(s.begin(),s.end());
    int result=stoi(s);
    cout<<result;
	return 0;
}
